package prj5;

import java.util.List;

/**
 * Entrance.
 * @author xinruili
 * @version 2022-04-21
 */
public class GUIRunner {
    public static void main(String[] args) {
        String csvFilename;
        if (args.length > 0) {
            csvFilename = args[0];
        } else {
            csvFilename = "Cases_and_Deaths_by_race_CRDT_Sep2020.csv";
        }
        DataProcessing dataProcessing = new DataProcessing(csvFilename);
        List<Data> datas = dataProcessing.getStates();
        new GUIWindow (datas);
        for (Data data:datas) {
            System.out.println(data.getStateName());
            data.showSout();
        }
    }
}
